% V20210224 - 5.6 GW_ICON$ INCLUDE "GW.bas" % Make a page. MainPage = GW_NEW_PAGE() % Get an icon from a file. Cartman = GW_ADD_ICON(MainPage, "cartman.png", 24, 24) % Prepare a left button. LeftButton$ = GW_ADD_BAR_LBUTTON$(GW_ICON$(Cartman) + ">Left") % Prepare title bar text. Center$ = GW_ADD_BAR_TITLE$("The icon is to the left") % Now add the title bar. TitleBar = GW_ADD_TITLEBAR(MainPage, LeftButton$ + Center$) % Prepare a right button. RightButton$ = GW_ADD_BAR_RBUTTON$(GW_ICON$(Cartman) + ">Right") % Prepare foot bar text. Center$ = GW_ADD_BAR_TITLE$("The icon is to the right.") % Finally add the foot bar. FootBar = GW_ADD_FOOTBAR (MainPage, Center$ + RightButton$) % Display everything. GW_RENDER(MainPage) DO % Wait for user action. r$ = GW_WAIT_ACTION$() % Place here any necessary code to process user actions. % Example feedback. POPUP r$ % End when BACK key is pressed. UNTIL r$ = "BACK" END The above code produces the following title and foot bars: